import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';

Widget loadingView() {
  return const Center(
    widthFactor: 1,
    heightFactor: 1,
    child: CircularProgressIndicator(),
  );
}

Widget titleHtmlView(title,textColor) {
  return Html(data: title, shrinkWrap: false, style: {
    "html": Style(
        margin: Margins.zero,
        maxLines: 2,
        textOverflow: TextOverflow.ellipsis,
        fontSize: FontSize(12),
        color: textColor,
        padding: HtmlPaddings.zero,
        alignment: Alignment.topLeft),
    "body": Style(
        margin: Margins.zero,
        maxLines: 2,
        textOverflow: TextOverflow.ellipsis,
        fontSize: FontSize(12),
        color: textColor,
        padding: HtmlPaddings.zero,
        alignment: Alignment.topLeft)
  });
}
